/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.VipType;
import com.sasis.dao.VipTypeDao;
import com.sasis.service.VipTypeManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class VipTypeManagerImpl extends BaseManager implements VipTypeManager {
    private VipTypeDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setVipTypeDao(VipTypeDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.VipTypeManager#getVipTypes(com.sasis.model.VipType)
     */
    public List getVipTypes(final VipType vipType) {
        return dao.getVipTypes(vipType);
    }

    /**
     * @see com.sasis.service.VipTypeManager#getVipType(String id)
     */
    public VipType getVipType(final String id) {
        return dao.getVipType(new Integer(id));
    }

    /**
     * @see com.sasis.service.VipTypeManager#saveVipType(VipType vipType)
     */
    public void saveVipType(VipType vipType) {
        dao.saveVipType(vipType);
    }

    /**
     * @see com.sasis.service.VipTypeManager#removeVipType(String id)
     */
    public void removeVipType(VipType vipType) {
        dao.removeVipType( vipType);
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
